package io.github.soiff.mdoc.holder;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhangh on 10/25/2016.
 *
 * @author : zhangh@dtdream.com
 * @version : 1.0.0
 * @since : 1.8
 */
@SuppressWarnings({"unused", "WeakerAccess"})
public class Type implements Serializable {
    private static final long serialVersionUID = 0L;
    private String type;
    private List<Primitive> fields = new ArrayList<>(32);

    public Type() {
    }

    public Type(String type, List<Primitive> fields) {
        this.type = type;
        this.fields = fields;
    }

    public String getType() {return type;}
    public List<Primitive> getFields() {return fields;}
    public void setType(String type) {this.type = type;}
    public void setFields(List<Primitive> fields) {this.fields = fields;}
}
